package phi.engine.actors
{
	import flash.display.Sprite;
	import flash.geom.Point;

	public class SensorActor extends PolygonActor
	{
		public function SensorActor( name :String, position :Point, size :Point )
		{
			super();
			
			this.name = name;
			
			var newOptions :ActorOptions = new ActorOptions();
			newOptions.startPosition = position;
			newOptions.size = size;
			
			changeOptions( newOptions );
		}
		
		override protected function createCostume():void
		{
			costume = new Sprite();
		}
		
		override protected function createBody():void
		{
			super.createBody();
			body.GetFixtureList().SetSensor( true );
		}
			
	}
}